import { charset } from "./constants"
export default function genKey(len: number){
    const charsetLen = charset.length
    var ret = ""
    for(var i = 0; i < len; i++){
        ret += charset[Math.floor(Math.random() * charsetLen)]
    }
    return ret
}